/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. All rights reserved.
 * Description: gradient Split Tune module evaluator file
 * Author: qianglihong
 * Create: 2020-09-15
 */

#include "evaluator.h"
#include "cluster.h"
#include "model.h"

using namespace std;
vector<int> EvaluatorDataParallel::run(Model &model, Cluster &cluster, int batchSize)
{
    const Communication &op = Allreduce();
    return model.GradientSlicing(cluster, op, batchSize);
}
